package com.guaoran.interview.demo.controller;

import com.guaoran.interview.demo.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author gucheng
 * @Description
 *  测试
 * 2019-04-02 14:30
 */
@RestController
@RequestMapping("/demo")
public class DemoController {
    @Autowired
    private DemoService demoService;
    @RequestMapping("/incr")
    public Long incr(){
        return demoService.incr();
    }
    @RequestMapping("/decr")
    public Long decr(){
        return demoService.decr();
    }
    @RequestMapping("/get")
    public Long get(){
        return demoService.get();
    }
}
